package org.dromara.mall.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.mall.domain.MallGoodsSpec;

import java.util.List;

/**
 * 商品规格Mapper接口
 *
 * @author Lion Li
 * @date 2024-05-20
 */
@Mapper
public interface MallGoodsSpecMapper extends BaseMapperPlus<MallGoodsSpec, MallGoodsSpec> {

    /*查询分页*/
    Page<MallGoodsSpec> queryPageList(@Param("page") Page<MallGoodsSpec> page, @Param("bo") MallGoodsSpec bo);
    /*根据specValues表的specId查询关联表spec*/
    List<MallGoodsSpec> findValSpecId(Long specId);
}
